


import { observable, action } from 'mobx'
import { ajax } from '../../api'

class Vip {

    // 会员列表
    @observable vipList: Array<object> = []
    @action changevipList = async (payload: any) => {
        let { code, result }: any = await ajax.viplist(payload)
        if (code == 200) {
            this.vipList = result
        }
    }
    // 会员列表查询
    @action vipQuery = async (payload: any) => {
        let { code, result }: any = await ajax.viplist(payload)
        if (code == 200) {
            this.vipList = result
        }
    }
    // 会员列表数据
    @action vipgetUserList = (palyoad: any) => {
        this.vipList = palyoad
    }

}

export default new Vip()